<div id="editInspectionPointModel" class="modal fade" role="dialog" aria-labelledby="exampleModalLabel"
    aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-body">
                <h3 class="m-t-none m-b ">
                    <vc:i18n name="修改巡检点" namespace="editInspectionPoint"></vc:i18n>
                </h3>
                <div class="ibox-content">
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label">
                            <vc:i18n name="巡检点名称" namespace="editInspectionPoint"></vc:i18n>
                        </label>
                        <div class="col-sm-4">
                            <input v-model="editInspectionPointInfo.inspectionName" type="text"
                                :placeholder="vc.i18n('必填，请填写巡检点名称','editInspectionPoint')" class="form-control">
                        </div>
                        <label class="col-sm-2 col-form-label">
                            <vc:i18n name="巡检类型" namespace="editInspectionPoint"></vc:i18n>
                        </label>
                        <div class="col-sm-4">
                            <select class="custom-select" v-model="editInspectionPointInfo.pointObjType">
                                <option selected disabled value="">
                                    {{vc.i18n('必填，请选择巡检类型','editInspectionPoint')}}
                                </option>
                                <option v-for="(item,index) in editInspectionPointInfo.pointObjTypes" :key="index"
                                    :value="item.statusCd">{{item.name}}
                                </option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group row" v-show="editInspectionPointInfo.pointObjType == '2002'">
                        <label class="col-sm-2 col-form-label">
                            <vc:i18n name="位置" namespace="editInspectionPoint"></vc:i18n>
                        </label>
                        <div class="col-sm-4">
                            <input v-model="editInspectionPointInfo.pointObjName" type="text"
                                :placeholder="vc.i18n('必填，请填写巡检位置','editInspectionPoint')" class="form-control">
                        </div>
                    </div>
                    <div class="form-group row" v-show="editInspectionPointInfo.pointObjType == '1001'">
                        <label class="col-sm-2 col-form-label">
                            <vc:i18n name="巡检设备" namespace="editInspectionPoint"></vc:i18n>
                        </label>
                        <div class="col-sm-4">
                            <vc:create path="property/machineSelect2" parentModal="editInspectionPointModel"
                                callBackListener="editInspectionPointInfo" callBackFunction="notify"
                                namespace="editInspectionPoint">
                            </vc:create>
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label">
                            <vc:i18n name="巡检项目" namespace="editInspectionPoint"></vc:i18n>
                        </label>
                        <div class="col-sm-4">
                            <select class="custom-select" v-model="editInspectionPointInfo.itemId">
                                <option selected value="">
                                    {{vc.i18n('必填，请选择巡检项目','editInspectionPoint')}}
                                </option>
                                <option v-for="(item,index) in editInspectionPointInfo.items" :key="index"
                                    :value="item.itemId">{{item.itemName}}
                                </option>
                            </select>
                        </div>
                        <label class="col-sm-2 col-form-label">nfc编码</label>
                        <div class="col-sm-4">
                            <input v-model="editInspectionPointInfo.nfcCode" type="text"
                                :placeholder="vc.i18n('选填，请填写nfc编码','editInspectionPoint')" class="form-control">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label">
                            <vc:i18n name="经度" namespace="editInspectionPoint"></vc:i18n>
                        </label>
                        <div class="col-sm-4">
                            <input v-model="editInspectionPointInfo.lng" type="text" disabled
                                :placeholder="vc.i18n('选填，请选择经度','editInspectionPoint')" class="form-control">
                        </div>
                        <label class="col-sm-2 col-form-label">纬度</label>
                        <div class="col-sm-4">
                            <input v-model="editInspectionPointInfo.lat" type="text" disabled
                                :placeholder="vc.i18n('选填，请选择纬度','editInspectionPoint')" class="form-control">
                        </div>
                    </div>
                    <div class="form-group row">
                        <label class="col-sm-2 col-form-label">
                            <vc:i18n name="备注" namespace="editInspectionPoint"></vc:i18n>
                        </label>
                        <div class="col-sm-4">
                            <textarea v-model="editInspectionPointInfo.remark"
                                :placeholder="vc.i18n('选填，请填写备注','editInspectionPoint')" class="form-control"></textarea>
                        </div>
                    </div>
                    <div class="form-group row">
                        <div id="editInspectionPointMap" style="width: 100%;height: 300px;"></div>
                    </div>
                    <div class="ibox-content">
                        <button class="btn btn-primary float-right" type="button" v-on:click="editInspectionPoint()">
                            <i class="fa fa-check"></i>&nbsp;保存
                        </button>
                        <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                            data-dismiss="modal">
                            <i class="fa fa-times"></i>&nbsp;取消
                        </button>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>